package com.neu.his.controller.RegistFee02;

import com.neu.his.bo.fee.FeeRec;
import com.neu.his.bo.removeDiag.RemoveRec;
import com.neu.his.core.Result;
import com.neu.his.service.registFee02.RemoveDiagService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@Slf4j
@RestController
@CrossOrigin
@RequestMapping("/removeDiag")
public class RemoveDiag {
    @Autowired
    private RemoveDiagService removeDiagService;

    @PutMapping("/query")
    public Result getItem(@RequestBody FeeRec feeRec){
        return removeDiagService.getItem(feeRec);
    }

    @PutMapping
    public Result removeRegist(@RequestBody RemoveRec removeRec){
        return removeDiagService.removeRegist(removeRec);
    }
}
